package com.lcfc.dao.lmpl;

import java.util.ArrayList;
import com.lcfc.bean.Buser;
import com.lcfc.dao.UserOperateDao;

/**
 * 用户操作DAO实现
 */
public class UserOperateDaoImpl implements UserOperateDao {

	public ArrayList<Buser> queryBuserByDistance(int distance, double lat,
			double lon) {
		
		//测试数据，真实数据来源于数据库查询------------------------------------------
		Buser u1 = new Buser(1111, "13477777777", "合肥师范学院（莲花路1688）",
				"http://www.hftc.edu.cn/_mediafile/web01/2016/01/22/27wv8sd8yg.jpg", "2e3e3e3e3e3e3e3", 117.2294000000d,
				31.7487200000d);
		Buser u2 = new Buser(1111, "13477777777", "肥西中学（巢湖中路20号）",
				"http://www.fxzx.net.cn/themes/index/images/wel_logo.png", "2e3e3e3e3e3e3e3", 117.1640100000d,
				31.7193100000d);
		Buser u3 = new Buser(1111, "13477777777", "合肥南站",
				"http://f.hiphotos.baidu.com/baike/pic/item/b2de9c82d158ccbf11e6a64b1fd8bc3eb135416c.jpg", "2e3e3e3e3e3e3e3", 117.2899400000d,
				31.8009000000d);
		
		ArrayList<Buser> list = new ArrayList<Buser>();
		list.add(u1);
		list.add(u2);
		list.add(u3);
	//-----------------------------------------------------------------------	
		return list;
	}

}
